<% form_tag search_path do -%>

	<p><label for="tag">Tag</label>
	<%= text_field_tag 'tag' %>&nbsp;<%= submit_tag 'Search' %></p>
<% end -%>
	


<h4 class="sets">SEARCH RESULTS!</h4>
<table class="fsets_grid">
<% for fset in @results %>
  <tr>
    <td><%=h fset.name %> by <%=h fset.user.login %></td>

    <td><%= link_to '', fset, { :class => "show" } %></td>
    <td><%= link_to '', new_fset_game_url(fset), { :class => "play" } %></td>
	<td><%= ratings_for fset, :static %></td>
  </tr>
<% end %>
</table>

<h4 class="sets">Tag cloud</h4>
<div id="search">
  <% tag_cloud @tags, %w(css1 css2 css3 css4) do |tag, css_class| %>
    <%= link_to tag.name, { :action => :search, :tag => tag.name }, :class => css_class %>
  <% end %>
</div>